package com.code9xs.mapper;

import com.code9xs.pojo.AssociationDepartment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AssociationDepartmentMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(AssociationDepartment record);

    int insertSelective(AssociationDepartment record);

    AssociationDepartment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AssociationDepartment record);

    int updateByPrimaryKey(AssociationDepartment record);

    int insertBatch(@P("list")List<AssociationDepartment> list);

    List<AssociationDepartment> selectDepartmentByAid(@Param("aid") Integer aid);
}
